package demo04;

public class exercise31 {
	public static void main(String[] args) {
		int[] arr = new int [10];
		int temp=0;
		for(int i = 0;i<10;i++){
			arr[i] =temp++; 
		}
		for(int a:arr){
			System.out.print(a+" ");
		}
		for(int i =arr.length-1,j=0;i>j;i--,j++){
			int t = arr[i];
			arr[i] = arr[j];
			arr[j] =t;
		}
		System.out.println();
		for(int a:arr){
			System.out.print(a+" ");
		}
	}
}
